package com.zhuiYun.project.api.paymode.service.impl;

import com.zhuiYun.project.api.paymode.entity.PayMode;
import com.zhuiYun.project.api.paymode.mapper.PayModeMapper;
import com.zhuiYun.project.api.paymode.service.PayModeService;
import com.zhuiYun.project.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName PayModeServiceImpl
 * @Description TODO 支付方式模块
 * @Author lzy
 * @Date 2023/4/5 15:31
 **/
@Service
public class PayModeServiceImpl implements PayModeService {

    @Autowired
    PayModeMapper payModeMapper;

    /**
    * @Description 查询支付方式信息列表方法
    * @Author lzy
    * @Date 2023/4/5 15:40
    * @Return com.zhuiYun.project.common.response.CommonResult
    */
    @Override
    public CommonResult getPayModeList() {
        PayMode payMode = new PayMode();
        payMode.setDelFlag(0);
        List<PayMode> payModeList = payModeMapper.select(payMode);
        return CommonResult.ok(payModeList);
    }
}
